const userModel = require('../model/userModel');

module.exports.insert = async function(user){
    // console.log("userModel:",userModel.insert);
    return await userModel.create(user);
}
module.exports.findByUsernameAndPwd = async function(user){
    return await userModel.find(user);
}
module.exports.findByUsername = async function(username){
    return await userModel.find({username});
}